home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 10900 / 10900.xpi / chrome.jar / skin / winxp / thunderbird / personas.css
Encoding:
Cascading Style Sheet File  |  2009-11-25  |  5.6 KB  |  140 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Personas.
  15.  *
  16.  * The Initial Developer of the Original Code is Mozilla.
  17.  * Portions created by the Initial Developer are Copyright (C) 2007
  18.  * the Initial Developer. All Rights Reserved.
  19.  *
  20.  * Contributor(s):
  21.  *   Chris Beard <cbeard@mozilla.org>
  22.  *   Myk Melez <myk@mozilla.org>
  23.  *
  24.  * Alternatively, the contents of this file may be used under the terms of
  25.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  26.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27.  * in which case the provisions of the GPL or the LGPL are applicable instead
  28.  * of those above. If you wish to allow use of your version of this file only
  29.  * under the terms of either the GPL or the LGPL, and not to allow others to
  30.  * use your version of this file under the terms of the MPL, indicate your
  31.  * decision by deleting the provisions above and replace them with the notice
  32.  * and other provisions required by the GPL or the LGPL. If you do not delete
  33.  * the provisions above, a recipient may use your version of this file under
  34.  * the terms of any one of the MPL, the GPL or the LGPL.
  35.  *
  36.  * ***** END LICENSE BLOCK ***** */
  37.  
  38.  
  39. /******************************************************************************/
  40. /* Personas Selector Menu & Toolbar Button */
  41.  
  42. /* Show the Personas icon to the Personas Tools menu item.  This is OS-specific
  43.  * because it doesn't look good on Mac, which also doesn't seem to respect
  44.  * the -moz-image-region rule, so we only show it on Windows and Linux. */
  45. #personas-menu {
  46.   list-style-image: url("chrome://personas/content/personas_16x16.png");
  47.   -moz-image-region: rect(0, 16px, 16px, 0px);
  48. }
  49.  
  50.  
  51. /******************************************************************************/
  52. /* Header */
  53.  
  54. /* IMPORTANT: these rules are very carefully devised to work in conjunction
  55.  * with additional rules below to add the persona image and remove borders
  56.  * between toolbars in the top chrome without changing the overall height
  57.  * of the top chrome, so content doesn't jump up or down when the user switches
  58.  * from the default theme to a persona. So when changing these rules, be very
  59.  * careful that you don't inadvertently change the overall height of the toolbar. */
  60.  
  61. /* Anchor the image to the top-right corner of the window. */
  62. #messengerWindow[persona] {
  63.   -moz-appearance: none;
  64.   background-repeat: no-repeat;
  65.   background-position: top right;
  66. }
  67.  
  68. #messengerWindow[persona] toolbox {
  69.   -moz-appearance: none;
  70.   background-color: transparent;
  71. }
  72.  
  73. /* Make some elements translucent so the persona flavors their appearance. */
  74. #messengerWindow[persona] #searchInput,
  75. #messengerWindow[persona] .tabmail-tab,
  76. #messengerWindow[persona] .tabs-alltabs-box,
  77. #messengerWindow[persona] #mail-bar3 > toolbaritem > menulist /* View and Folder menus */
  78. {
  79.   opacity: 0.8;
  80. }
  81.  
  82. #messengerWindow[persona] #tabmail, .tabmail-tabs {
  83.   background-color:transparent !important;
  84. }
  85.  
  86.  
  87. /******************************************************************************/
  88. /* Ensure transparency of all toolbar items in their various states */
  89. /* (e.g. active, inactive, hover, etc.). */
  90.  
  91. #messengerWindow[persona] toolbarbutton {
  92.   -moz-appearance: none;
  93. }
  94.  
  95.  
  96. /******************************************************************************/
  97. /* Eliminate top/bottom borders from toolbars so they don't mar the persona. */
  98.  
  99. /* IMPORTANT: these rules are very carefully devised to remove or hide borders
  100.  * without changing the overall height of the top chrome, so content doesn't
  101.  * jump up or down when the user switches from the default theme to a persona.
  102.  * So when changing these rules, be very careful that you don't inadvertently
  103.  * change the overall height of the toolbar. */
  104.  
  105. #messengerWindow[persona] toolbox {
  106.   /* When we set -moz-appearance: none so the persona will appear, the toolbox
  107.    * gains a 1px top border that it doesn't have with -moz-appearance: toolbox,
  108.    * so we have to remove it. */
  109.   border-top: 0;
  110. }
  111.  
  112. #messengerWindow[persona] toolbar {
  113.   /* To get rid of the borders on the toolbars, we have to first set
  114.    * -moz-appearance from toolbar to none so we can override the border rules.
  115.    * That changes the top and bottom border widths from 2px, 0px to 1px, 1px,
  116.    * respectively, so we then emulate the widths of the original borders
  117.    * with top and bottom border rules. */
  118.   -moz-appearance: none;
  119.   border-top-width: 2px;
  120.   border-top-color: transparent;
  121.   border-bottom: none;
  122. }
  123.  
  124.  
  125. /******************************************************************************/
  126. /* Eliminate top/bottom borders from statusbars so they don't mar the persona. */
  127.  
  128. /* IMPORTANT: these rules are very carefully devised to remove or hide borders
  129.  * without changing the overall height of the bottom chrome, so content doesn't
  130.  * jump up or down when the user switches from the default theme to a persona.
  131.  * So when changing these rules, be very careful that you don't inadvertently
  132.  * change the overall height of the toolbar. */
  133.  
  134. #status-bar[persona], #status-bar[persona] > hbox, #status-bar[persona] statusbarpanel {
  135.   -moz-appearance: none; /* undo -moz-appearance: statusbarpanel */
  136.  
  137.   background-repeat: no-repeat;
  138.   border: 0px solid transparent;
  139. }
  140.